import request from '@/utils/request'

// 查询钻石充值订单列表
export function listRechargeOrder(data) {
  return request({
    url: '/admin/rechargeOrder/pageList',
    method: 'post',
    data: data
  })
}

// 查询钻石充值订单详细
export function getRechargeOrder(id) {
  return request({
    url: '/admin/rechargeOrder/query/' + id,
    method: 'get'
  })
}

// 新增钻石充值订单
export function addRechargeOrder(data) {
  return request({
    url: '/admin/rechargeOrder/add',
    method: 'post',
    data: data
  })
}

// 修改钻石充值订单
export function updateRechargeOrder(data) {
  return request({
    url: '/admin/rechargeOrder/update',
    method: 'post',
    data: data
  })
}

// 删除钻石充值订单
export function delRechargeOrder(id) {
  return request({
    url: '/admin/rechargeOrder/delete/' + id,
    method: 'delete'
  })
}

// 导出钻石充值订单
export function exportRechargeOrder(query) {
  return request({
    url: '/admin/rechargeOrder/export',
    method: 'get',
    params: query
  })
}
